﻿using System;
using WuyuanSpecialty.Teas;

namespace WuyuanSpecialty
{
    class Program
    {
        static void Main(string[] args)
        {
            var tea = new WySpecialty(new Specialty1(), new Specialty2(), new Specialty3(), new Prompt());
            Console.WriteLine("婺源四大特产（红、绿、黑、白）");
            tea.TeaList("我们本店的茶");
            Console.WriteLine("————————————");
            Console.WriteLine("输入7全选；输入8取消所有选购；输入9为确认购买");
            for (int i = 0; i <= 9; i++)
            {
                Console.WriteLine("请输入数字来选购茶叶");
                i = Convert.ToInt32(Console.ReadLine());
                if (i == 1)
                {
                    tea.Shopping(1);
                }
                else if (i == 2)
                {
                    tea.Shopping(2);
                }
                else if (i == 3)
                {
                    tea.Shopping(3);
                }
                else if (i == 4)
                {
                    tea.Shopping(4);
                }
                else if (i == 5)
                {
                    tea.Shopping(5);
                }
                else if (i == 6)
                {
                    tea.Shopping(6);
                }
                else if (i == 7)
                {
                    tea.Shopping(7);
                }
                else if (i == 8)
                {
                    tea.Shopping(8);
                }
                else if (i == 9)
                {
                    tea.Shopping(9);
                }
            }
        }
    }
}

